<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>2-Math随机数</title>
	</head>
	<body>
		<script type="text/javascript">
			//[0,1)
			console.log(Math.random());
			var x = Math.random();
			console.log(x);
			console.log(x.toFixed(2));

			
			
			
			
		</script>
	</body>
</html>
